//
//  SmallDetailKindCollectionCellA.m
//  MarianasTrench
//
//  Created by 王晓晨 on 16/3/18.
//  Copyright © 2016年 王爵. All rights reserved.
//

#import "SmallDetailKindCollectionCellA.h"

@implementation SmallDetailKindCollectionCellA

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
        
    }return self;
}

- (void)createSubViews {
        
    self.picImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
    [self.contentView addSubview:_picImage];
    _picImage.image = IMAGE(@"wKgDXFWxp1GhXDNWAAAe3Wzn5oI842.png");
    _picImage.layer.cornerRadius = 25;
    _picImage.layer.masksToBounds = YES;
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 + _picImage.frame.origin.x + _picImage.frame.size.width, _picImage.frame.origin.y, self.contentView.frame.size.width / 3 * 2, 20)];
    [self.contentView addSubview:_titleLabel];
    _titleLabel.text = @"有声书每日top50";
    
    self.contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(_titleLabel.frame.origin.x, 10 + _titleLabel.frame.origin.y + _titleLabel.frame.size.height, _titleLabel.frame.size.width, _titleLabel.frame.size.height)];
    [self.contentView addSubview:_contentLabel];
    _contentLabel.text = @"每日更新最火的有声书节目";
    _contentLabel.textColor = [UIColor lightGrayColor];
}


@end
